package com.globaldom.model;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.NotPersistent;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

//@Configurable
@PersistenceCapable
public class Gift implements Serializable {

	/**
	 * 
	 */
	@NotPersistent 
	private static final long serialVersionUID = 1L;

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	@Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value = "true")
	private String id;
	@Persistent
	private String giftSender;
	@Persistent
	private String giftReceiver;
	@Persistent
	private Integer giftType;
	@Persistent
	private Long giftAmount;
	@Persistent
	private Integer giftItem;
	@Persistent
	private Date createDate = new Date();
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getGiftType() {
		return giftType;
	}

	public void setGiftType(Integer giftType) {
		this.giftType = giftType;
	}

	public Long getGiftAmount() {
		return giftAmount;
	}

	public void setGiftAmount(Long giftAmount) {
		this.giftAmount = giftAmount;
	}

	public String getGiftSender() {
		return giftSender;
	}

	public void setGiftSender(String giftSender) {
		this.giftSender = giftSender;
	}

	public String getGiftReceiver() {
		return giftReceiver;
	}

	public void setGiftReceiver(String giftReceiver) {
		this.giftReceiver = giftReceiver;
	}

	public Integer getGiftItem() {
		return giftItem;
	}

	public void setGiftItem(Integer giftItem) {
		this.giftItem = giftItem;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("Id: ").append(getId()).append(", ");
		return sb.toString();
	}

}
